home *** CD-ROM | disk | FTP | other *** search
- Path: sourcery.han.de!not-for-mail
- Newsgroups: comp.sys.amiga.programmer
- References: <13213602@sourcery.han.de> <1005.6624T1300T707@teclink.net> <Dn668q.5Kr@cyf-kr.edu.pl>
- From: "Olaf Barthel" <olsen@sourcery.han.de>
- Date: Sat, 24 Feb 1996 15:41:55 +0100
- X-NewsReader: IntuiNews 1.3a (7.9.95)
- Subject: Re: Update to Native Developer Kit 3.1: Request for ideas
- Message-ID: <13213658@sourcery.han.de>
-
- In Article <Dn668q.5Kr@cyf-kr.edu.pl>, Kamil Iskra <iskra@student.uci.agh.edu.pl> wrote:
- > rad (rad@teclink.net) wrote:
- > > The thing I would like most to see in an update is the correcting of
- > > prototypes in headers to indicate when constant pointers can be passed.
- >
- > > (e.g. in clib/dos.h:
- >
- > > BPTR Open (CONST STRPTR name, long accesMode);
- > > LONG Write (BPTR file, CONST APTR buffer, long length);
- > > LONG DeleteFile (CONST STRPTR name);
- > > LONG Rename (CONST STRPTR oldName, CONST STRPTR newName);
- > > BPTR Lock (CONST STRPTR name, long type);
- >
- > Good point! It would make programming easier and would let compilers make
- > more optimizations in some cases.
-
- Yep, if the compiler plays by the rules.
-
- > Another thing in this subject that needs updating is converting all UBYTE*
- > (and maybe char*, too) to STRPTR - they cause huge amount of warnings when
- > compiling in C++, which uses stricter pointer checking and will not ignore
- > "char*" <-> "unsigned char*" mismatches.
-
- Noted.
-
- > Another thing is including all necessary headers before declaring
- > prototypes in "clib" files. As "necessary" I mean headers that contain
- > structures which are used in prototypes. ANSI C says that scope of
- > structures implicitly declared in prototypes ends with the end of...
- > prototype! This effectively makes this prototypes useless. Many compilers,
- > including SAS/C, work well with such code, but GNU CC does not and is
- > *right* - this is violation of ANSI standard.
-
- Noted.
-
- --
- Home: Olaf Barthel, Brabeckstrasse 35, D-30559 Hannover
- Net: olsen@sourcery.han.de
-